<template>
	<view>
		<view>
			<button @click="sendRequest">发送请求</button>
		</view>
		<view v-for="item in userinfos">{{item.username}}</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userinfos:["java","mysql"]
			}
		},
		methods: {
			sendRequest(){
				var that=this
				uni.request({
					url:"http://localhost:8086/qst_springbootvue20220217/getUserInfoes",
					data:{
						pageNum:1,
						pageSize:5
					},
					success(res) {
						console.log(res.data.list)					
						that._data.userinfos=res.data.list
			
					}
				})
			}
		}
	}
</script>

<style>

</style>
